package cn.edu.sgu.www.mhxysy.dto.xingshi;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.consts.RegExps;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class XingshiInlayDTO implements DataTransferObject {

    /**
     * 星石ID
     */
    @Pattern(regexp = RegExps.XINGSHI_ID, message = "星石ID" + CustomMessages.ILLEGAL)
    @NotBlank(message = CustomMessages.XINGSHI_ID_NOT_NULL)
    @ApiModelProperty(value = "星石ID", required = true)
    private String xingshiId;

    /**
     * 宠物装备ID
     */
    @ApiModelProperty(value = "宠物装备ID")
    private String equipmentId;
}